import Vue from 'vue'
import Element from 'element-ui'
import Axios from 'axios'
import VueAMap from 'vue-amap'
import VueParticles from 'vue-particles'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import VueLazyload from 'vue-lazyload'
import 'swiper/dist/css/swiper.css'
import App from './App.vue'
import router from './router'
import './styles/element-variables.scss'
import '@/styles/index.scss' // global css

Vue.config.productionTip = false

Vue.use(Element, {
  size: 'medium', // set element-ui default size
})
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: 'c26164802c76dc09d1422e6c030f3864',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
});
Vue.use(VueAwesomeSwiper)
Vue.use(VueParticles)
Vue.use(VueLazyload)

Vue.prototype.$http = Axios;
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
